package cn.tedu.online.examination.system.ui;

import cn.tedu.online.examination.system.entity.User;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @author JokerQ
 * @date 2020/6/12 - 17:56
 */
public class EntityContext implements Serializable {

    private static final long serialVersionUID = 1055174173361803675L;
    /**
     * 已键值对的方式存储user信息
     *
     */
    private Map<Integer, User> users = new HashMap<Integer, User>();

    public User findUserById(int id) {
        return users.get(id);
    }
}
